//
//  CityLocalCell.m
//  BaseProject
//
//  Created by 王洋 on 2021/1/11.
//  Copyright © 2021 王洋. All rights reserved.
//

#import "CityLocalCell.h"

@implementation CityLocalCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (IBAction)handleAction:(id)sender {
    if (self.CityLocalCellBlock) {
        self.CityLocalCellBlock();
    }
}

- (void)fillWithModel:(CityModel *)model {
    
    if (model.cityName.length > 0) {
        [self.localCityBtn setTitle:[NSString stringWithFormat:@" %@",model.cityName] forState:UIControlStateNormal];
    } else {
        [self.localCityBtn setTitle:[NSString stringWithFormat:@" %@",@"点击定位"] forState:UIControlStateNormal];
    }
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
